package com.groupbuying.storeinternal.service.impl;


import com.groupbuying.storeinternal.dao.StoreCheckoutCounterDao;
import com.groupbuying.storeinternal.domain.StoreCheckoutCounterDO;
import com.groupbuying.storeinternal.service.StoreCheckoutCounterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Map;


@Service
public class StoreCheckoutCounterServiceImpl implements StoreCheckoutCounterService {
	@Autowired
	private StoreCheckoutCounterDao storeCheckoutCounterDao;

	@Override
	public StoreCheckoutCounterDO get(String uuid){
		return storeCheckoutCounterDao.get(uuid);
	}
	
	@Override
	public List<StoreCheckoutCounterDO> list(Map<String, Object> map){
		return storeCheckoutCounterDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return storeCheckoutCounterDao.count(map);
	}
	
	@Override
	public int save(StoreCheckoutCounterDO storeCheckoutCounter){
		return storeCheckoutCounterDao.save(storeCheckoutCounter);
	}
	
	@Override
	public int update(StoreCheckoutCounterDO storeCheckoutCounter){
		return storeCheckoutCounterDao.update(storeCheckoutCounter);
	}
	
	@Override
	public int remove(String uuid){
		return storeCheckoutCounterDao.remove(uuid);
	}
	
	@Override
	public int batchRemove(String[] uuids){
		return storeCheckoutCounterDao.batchRemove(uuids);
	}

    @Override
    public List<StoreCheckoutCounterDO> queryListInStoreUuid(Map map) {
		return storeCheckoutCounterDao.queryListInStoreUuid(map);
    }

	@Override
	public Map<String, Object> getStoreIdAndRuleIdByCounterId(Map<String, Object> params) {
		return storeCheckoutCounterDao.getStoreIdAndRuleIdByCounterId(params);
	}



}
